package com.project.fortuneteller.config;

import com.project.fortuneteller.pojo.DivineObj;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "change.base")
public class DivineConfig {
    /**C:\Program Files\MySQL\MySQL Server 8.0\bin
     * 必须加 get 和 set 方法 才能作为 完整的Bean 对象
     * @return
     */
    public List<DivineObj> getItems() {
        return items;
    }

    public DivineConfig(List<DivineObj> items) {
        this.items = items;
    }

    public void setItems(List<DivineObj> items) {
        this.items = items;
    }

    // divineObjList
    public List<DivineObj> items;
}
